public class Switch {
public static void main(String[] args) {
	

//     考试例子为例
    int scope = 60;
    int result = scope / 10;
    char flag;
    switch (result) {
      case 10:
      case 9:
        flag = 'A';
        break;
      case 8:
        flag = 'B';
        break;
      case 7:
        flag = 'C';
        break;
      case 6:
        flag = 'D';
        break;
      default:
        flag = 'E';
     }
    System.out.println( "你考的分数是"+scope+" 成绩等级 flag = " + flag );
	}
}